home *** CD-ROM | disk | FTP | other *** search
/ Freelog 38 / Freelog038.iso / Bas / Bureautique / Ntl480 / Setup.exe / {app} / Libraries / HTML.clb < prev    next >
Text File  |  2002-06-10  |  29KB  |  624 lines

  1. = V5 MultiLine NoSorting TabWidth=30
  2.  
  3. H=";HTML Template"
  4.  
  5.  
  6. H="New Web page"
  7. ^!Open ^$GetTemplatePath$HTML.tpl
  8.  
  9. H=";Document Elements"
  10. Most of these elements are required within an HTML document for it to conform to HTML standards.
  11.  
  12. H="Base"
  13. ^!InsertWizardHtml <BASE HREF="^?[Base URL=^&]" TARGET="^?[Target (optional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top]">^P
  14.  
  15. H="Basefont"
  16. ^!Clip "Basic Color Codes"
  17. ^!SetWizardLabel "Enter values for tag attributes"
  18. ^!InsertWizardHtml <BASEFONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingding, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^%BasicColors%}">^P
  19.  
  20. H="Body"
  21. ^!Set %HasBody%=False
  22. ^!Clip "Color Codes"
  23. ^!Clip "Basic Color Codes"
  24. ^!InsertWizardHtml <BODY BGCOLOR="^?{&Background Color=^$StrReplace("white^=#FFFFFF";"_white^=#FFFFFF";"^%AllColors%";True;False)$}" TEXT="^?{&Text Color=^$StrReplace("black^=#000000";"_black^=#000000";"^%BasicColors%";True;False)$}" LINK="^?{&Link Color=^$StrReplace("blue^=#0000FF";"_blue^=#0000FF";"^%BasicColors%";True;False)$}" VLINK="^?{&Visited Link Color=^$StrReplace("purple^=#800080";"_purple^=#800080";"^%BasicColors%";True;False)$}" ALINK="^?{&Active Link Color=^$StrReplace("red^=#FF0000";"_red^=#FF0000";"^%BasicColors%";True;False)$}" BACKGROUND="^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg;*.jpe")Background &file name=^$GetSelection$}">^P^P
  25. ^!IfCancel End
  26. ^!Set %HasBody%=True
  27.  
  28. H="HTML begin"
  29. ^!Set %DocValues%=[Omit]^=|XHTML 1.0 Strict^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">|XHTML 1.0 Transitional^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">|XHTML 1.0 Frameset^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">|HTML 4.01 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">|HTML 4.01 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">|HTML 4.01 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">|HTML 4 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">|HTML 4 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">|HTML 4 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">|HTML 3.2 (W3C)^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">|HTML (IE3)^=<!DOCTYPE HTML PUBLIC "-//Microsoft//DTD Internet Explorer 3.0 HTML//EN">|HTML 2 (Netscape)^=<!DOCTYPE HTML PUBLIC "-//WebTechs//DTD Mozilla HTML 2.0//EN">|HTML 2 (IETF)^=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">|HTML 1 (IETF)^=<!DOCTYPE HTML PUBLIC  "-//IETF//DTD HTML Level 1//EN">
  30.  
  31. ^!Set %CharSetValues%=[Omit]^=|Default encoding (UTF-8)^=UTF-8|Latin 1 (Western/West European)^=ISO-8859-1|Latin 2 (Central and East European)^=ISO-8859-2|Latin 3 (South European, Maltese and Esperanto)^=ISO-8859-3|Latin 4 (North European)^=ISO-8859-4|Latin/Cyrillic (Slavic languages)^=ISO-8859-5|Latin/Arabic^=ISO-8859-6|Latin/Greek (modern Greek)^=ISO-8859-7|Latin/Hebrew (Hebrew and Yiddish)^=ISO-8859-8|Latin 5 (Turkish)^=ISO-8859-9|Latin 6 (Nordic: Sßmi, Inuit, Icelandic)^=ISO-8859-10|Latin/Thai^=ISO-8859-11|Latin 7 (Baltic Rim)^=ISO-8859-13|Latin 8 (Celtic)^=ISO-8859-14|Latin 9 ("Euro")^=ISO-8859-15|Japanese (SHIFT_JIS)^=SHIFT_JIS|Japanese (EUC-JP)^=EUC-JP
  32.  
  33. ^!Set %DefaultDocValue%=^$GetValue(HTML_DocType)$
  34. ^!IfTrue ^$IsEmpty(^%DefaultDocValue%)$ ^!Set %DefaultDocValue%=[Omit]
  35. ^!Set %DocValues%=^$SetDefaultValue("^%DocValues%";^%DefaultDocValue%)$
  36.  
  37. ^!Set %DefaultCharSet%=^$GetValue(HTML_CharSet)$
  38. ^!IfTrue ^$IsEmpty(^%DefaultCharSet%)$ ^!Set %DefaultCharSet%=[Omit]
  39. ^!Set %CharSetValues%=^$SetDefaultValue("^%CharSetValues%";^%DefaultCharSet%)$
  40.  
  41. ^!Set %Author%=^$GetValue(HTML_Author)$
  42. ^!Set %Email%=^$GetValue(HTML_Email)$
  43.  
  44. ^!Set %DocType%=^?{Document &type=^%DocValues%}; %Title%=^?{&Web page title}; %Description%=^?{Web page &description}; %Keywords%=^?{Web page &keywords}; %Author%=^?{Your &name=^%Author%}; %Email%=^?{Your &e-mail address=^%Email%}; %CharSet%=^?{&Character set=^%CharSetValues%}
  45.  
  46. ^!SaveValue HTML_DocType=^%DocType%
  47. ^!SaveValue HTML_CharSet=^%CharSet%
  48. ^!SaveValue HTML_Author=^%Author%
  49. ^!SaveValue HTML_Email=^%Email%
  50. ^!IfFalse ^$IsEmpty(^%DocType%)$ ^!Set %DocType%=^%DocType%^P
  51. ^!IfFalse ^$IsEmpty(^%CharSet%)$ ^!Set %CharSet%=  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=^%CharSet%">^P
  52.  
  53. ^!If ^$GetClipVersion$ = 5 Start
  54. ^!Set %HtmlFormat%=^$GetHtmlFormat$
  55. ^!If ^%HtmlFormat% = XHTML Start
  56. ^!If ^$StrPos("XHTML";"^%DocType%";False)$ = 0 Start
  57. ^!SetHtmlFormat XHTML
  58.  
  59. :Start
  60. ^!InsertHtml ^%DocType%<HTML>^P<HEAD>^P  <TITLE>^%Title%</TITLE>^P  <LINK REV="made" HREF="mailto:^%Email%">^P^%CharSet%  <META NAME="generator" CONTENT="^$GetProgName$ ^$GetProgVersion$">^P  <META NAME="author" CONTENT="^%Author%">^P  <META NAME="description" CONTENT="^%Description%">^P  <META NAME="keywords" CONTENT="^%Keywords%">^P</HEAD>^P^P
  61. ^!Clip Body
  62. ^!IfFalse ^%HasBody% ^!InsertHtml <BODY>^P^P
  63. ^!If ^$GetClipVersion$ = 5 Skip
  64. ^!SetHtmlFormat ^%HtmlFormat%
  65.  
  66. H="HTML end"
  67. ^!InsertHtml </BODY>^P</HTML>^P
  68.  
  69. H="Last updated..."
  70. ^!InsertHtml Last updated on <^?[Format date==_Bold^=B|Italic^=I]>^$GetDate(mmmm dd, yyyy)$</^?[Format date]>^P
  71.  
  72. H="Link"
  73. ^!SetWizardLabel "Enter values for tag attributes"
  74. ^!InsertWizardHtml <LINK HREF="^?{&URL of linked resource}" REL="^?{&Relationship with linked document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|next|prev|section|start|stylesheet|subsection}" REV="^?{&Relationship of current document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|made|next|prev|section|start|stylesheet|subsection}">^P
  75.  
  76. H="Meta"
  77. ^!SetWizardLabel "Enter values for tag attributes"
  78. ^!InsertWizardHtml <META HTTP-EQUIV="^?{&HTTP header string=content-type|expires|page-enter|pics-label|pragma|refresh}" NAME="^?{&Name of meta-information=author|copyright|date|description|generator|identifier|keywords|revisit-after|robots}" CONTENT="^?{&Content}">^P
  79.  
  80. H="Style"
  81. ^!SetWizardLabel "Enter values for tag attributes"
  82. ^!InsertWizardHtml <STYLE TYPE="^?{&Mime type=text/css}" LANG="^?{&Language}">^P<!--^P  ^&^P-->^P</STYLE>^P
  83.  
  84. H="Title"
  85. ^!InsertHtml <TITLE>^&</TITLE>^P
  86.  
  87. H=";Anchor Elements"
  88. An anchor element is used to define the start and/or destination of a hypertext link.
  89.  
  90. H="Bookmark"
  91. ^!InsertHtml <A NAME="^?[Bookmark label]">^&</A>
  92.  
  93. H="Hyperlink"
  94. ^!SetWizardLabel "Enter values for tag attributes"
  95. ^!InsertWizardHtml <A HREF="^?{&Link URL}" TARGET="^?{&Target (transitional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top}">^?{Link &description=^&}</A>
  96.  
  97. H="Hyperlink = description"
  98. ^!InsertHtml <A HREF="^&">^?[=^&]</A>
  99.  
  100. H="Hyperlink to bookmark"
  101. ^!InsertHtml <A HREF="#^?[Link to Bookmark]">^&</A>
  102.  
  103. H="Hyperlink with image"
  104. ^!SetWizardLabel "Enter values for tag attributes"
  105. ^!InsertWizardHtml <A HREF="^?{&Link URL}"><IMG ^?{(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name} BORDER="0" ALT="^?{Image text &description=^&}"></A>
  106.  
  107. H="MailTo"
  108. ^!SetWizardLabel "Enter values for tag attributes"
  109. ^!InsertHtml <A HREF="mailto:^?{&Email address=^&}">^?{&Link description text=^&}</A>
  110.  
  111. H=";Block Formatting"
  112. These elements are used for the formatting of whole blocks of text within an HTML document.
  113.  
  114. H="Address"
  115. ^!InsertHtml <ADDRESS>^P  ^&^P</ADDRESS>^P
  116.  
  117. H="Blockquote"
  118. ^!SetPasteIndent Off
  119. ^!InsertHtml <BLOCKQUOTE>^&</BLOCKQUOTE>
  120.  
  121. H="Center"
  122. ^!SetPasteIndent Off
  123. ^!InsertHtml <CENTER>^&</CENTER>
  124.  
  125. H="Div"
  126. ^!SetPasteIndent Off
  127. ^!InsertWizardHtml <DIV ALIGN="^?{&Align (transitional)=center|justify|left|right}">^&</DIV>
  128.  
  129. H="Font"
  130. ^!Clip "Basic Color Codes"
  131. ^!SetPasteIndent Off
  132. ^!SetWizardLabel "Enter values for tag attributes"
  133. ^!InsertWizardHtml <FONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingding, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^%BasicColors%}">^&</FONT>
  134.  
  135. H="Line break"
  136. ^!InsertHtml <BR>^P
  137.  
  138. H="H? header"
  139. ^!InsertHtml <H^?[(T=C)Header level==_1|2|3|4|5|6]>^&</H^?[Header level]>^P
  140.  
  141. H="Horizontal line"
  142. ^!SetWizardLabel "Optional attributes for the HR tag"
  143. ^!InsertWizardHtml <HR ALIGN="^?{(T=C)&Align (transitional)=center|left|right}" SIZE="^?{&Size (transitional)}" WIDTH="^?{&Width (transitional)}"^?{(T=C)&No shade (transitional)==True^= NOSHADE|False^=}>^P
  144.  
  145. H="Paragraph block"
  146. ^!SetPasteIndent Off
  147. ^!InsertWizardHtml <P ALIGN="^?{&Align (transitional)=center|justify|left|right}">^&</P>
  148.  
  149. H="Preformatted text"
  150. ^!InsertHtml <PRE>^P  ^&^P</PRE>^P
  151.  
  152. H=";List Elements"
  153. List elements are used in the body of an HTML document and may be nested.
  154.  
  155. H="Definition list"
  156. ^!InsertHtml <DL>^P^$StrFill("  <DT></DT><DD></DD>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$</DL>^P
  157.  
  158. H="Ordered List"
  159. ^!Clip "CreateList" OL
  160.  
  161. H="Unordered list"
  162. ^!Clip "CreateList" UL
  163.  
  164. H="Add list item"
  165. ^!InsertHtml <LI>^&</LI>
  166.  
  167. H=";Information Elements"
  168. Information type elements indicate to the browser that the enclosed text should be rendered in a way according to the browser, rather than using a specific formatting style.
  169.  
  170. H="Citation"
  171. ^!InsertHtml <CITE>^&</CITE>
  172.  
  173. H="Code"
  174. ^!InsertHtml <CODE>^&</CODE>
  175.  
  176. H="Comment"
  177. <!-- ^?[Comment=^&] -->
  178.  
  179. H="Emphasis"
  180. ^!InsertHtml <EM>^&</EM>
  181.  
  182. H="Keyboard"
  183. ^!InsertHtml <KBD>^&</KBD>
  184.  
  185. H="Strong"
  186. ^!InsertHtml <STRONG>^&</STRONG>
  187.  
  188. H="Variable"
  189. ^!InsertHtml <VAR>^&</VAR>
  190.  
  191. H=";Character Formatting"
  192. Character formatting elements produce strict rendering of the text.
  193.  
  194. H="Big text"
  195. ^!InsertHtml <BIG>^&</BIG>
  196.  
  197. H="Bold"
  198. ^!Clip CheckLogical
  199.  
  200. :PasteTag
  201. ^!Set %Value%=B
  202. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=STRONG
  203. ^!InsertHtml <^%Value%>^&</^%Value%>
  204.  
  205. H="Italic"
  206. ^!Clip CheckLogical
  207.  
  208. :PasteTag
  209. ^!Set %Value%=I
  210. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=EM
  211. ^!InsertHtml <^%Value%>^&</^%Value%>
  212.  
  213. H="Small text"
  214. ^!InsertHtml <SMALL>^&</SMALL>
  215.  
  216. H="Strike"
  217. ^!InsertHtml <STRIKE>^&</STRIKE>
  218.  
  219. H="Subscript"
  220. ^!InsertHtml <SUB>^&</SUB>
  221.  
  222. H="Superscript"
  223. ^!InsertHtml <SUP>^&</SUP>
  224.  
  225. H="Underline"
  226. ^!InsertHtml <U>^&</U>
  227.  
  228. H=";Image Elements"
  229. The Image element is used to incorporate in-line graphics into an HTML document.
  230.  
  231. H="Embed"
  232. ^!SetWizardLabel "Enter values for tag attributes"
  233. ^!InsertWizardHtml <EMBED SRC="^?{&Object URL=^&}" ALIGN="^?{&Align=absbottom|absmiddle|baseline|bottom|left|middle|right|texttop|top}" ALT="^?{Alternative text &description}">
  234.  
  235. H="Image"
  236. ^!SetWizardLabel "Enter values for tag attributes"
  237. ^!InsertWizardHtml <IMG ^?{(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name} BORDER="^?{&Border (transitional)=_0|1|2|3|4|5}" ALIGN="^?{&Align (transitional)=bottom|left|middle|right|top}" HSPACE="^?{&Horizontal space (transitional)}" VSPACE="^?{&Vertical space (transitional)}" ALT="^?{Image text &description=^&}">
  238.  
  239. H=";Table Elements"
  240. Table elements with tags to define rows and cells.
  241.  
  242. H="Caption"
  243. ^!InsertWizardHtml <CAPTION ALIGN="^?{Align (transitional)=bottom|left|right|top}">^&</CAPTION>
  244.  
  245. H="Table"
  246. ^!Clip "Color Codes"
  247. ^!SetWizardLabel "Enter values for tag attributes"
  248. ^!InsertWizardHtml <TABLE ALIGN="^?{&Align (transitional)=center|left|right}" BGCOLOR="^?{Background &color (transitional)=^%AllColors%}" BORDER="^?{&Border=_0|1|2|3|4|5|6|7|8}" CELLSPACING="^?{Cell &spacing=0}" CELLPADDING="^?{Cell &padding=0}" WIDTH="^?{&Width=100%}">^P  ^&^P</TABLE>^P
  249.  
  250. H="TD table data cell"
  251. ^!Clip "Color Codes"
  252. ^!SetWizardLabel "Enter values for tag attributes"
  253. ^!InsertWizardHtml <TD ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TD>
  254.  
  255. H="TH table heading cell"
  256. ^!Clip "Color Codes"
  257. ^!SetWizardLabel "Enter values for tag attributes"
  258. ^!InsertWizardHtml <TH ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TH>
  259.  
  260. H="TR table row"
  261. ^!Clip "Color Codes"
  262. ^!SetWizardLabel "Enter values for tag attributes"
  263. ^!InsertWizardHtml <TR ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}">^&</TR>
  264.  
  265. H="Table wizard"
  266. ^!InsertWizardHtml <TABLE ALIGN="^?[(3)&Table align (transitional)=center|left|right]" BORDER="^?[(4)&Border=_0|1|2|3|4|5|6|7|8]" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">^P
  267. ^!SET %RowCount%=^?[(1)How many &rows=1|2|_3|4|5|6|7|8|9]
  268. ^!SET %CellCount%=^?[(2)How many &cells=1|2|_3|4|5|6|7|8|9]
  269. ^!SET %RowIndex%=0
  270. :RepeatRow
  271. ^!INC RowIndex
  272. ^!IF ^%RowIndex% > ^%RowCount% EndRow
  273. ^!InsertWizardHtml   <TR ALIGN="^?[(5)TR &Align=center|left|right]" VALIGN="^?[(6)TR &VAlign=baseline|bottom|middle|top]">^P
  274. ^!SET %CellIndex%=0
  275. :RepeatCell
  276. ^!INC CellIndex
  277. ^!IF ^%CellIndex% > ^%CellCount% EndCell
  278. ^!InsertWizardHtml     <TD ALIGN="^?[(7)T&D Align=center|left|right]" VALIGN="^?[(8)TD VAli&gn=baseline|bottom|middle|top]">^P
  279. ^?[(10)&Prompt for cell text=Yes^=    ^?{R^%RowIndex%C^%CellIndex%: Enter cell text}|_No^=    <!--R^%RowIndex%C^%CellIndex%-->]
  280. ^!InsertHtml ^P    </TD>^P
  281. ^!GoTo RepeatCell
  282. :EndCell
  283. ^!InsertHtml   </TR>^P
  284. ^!GoTo RepeatRow
  285. :EndRow
  286. ^!InsertHtml </TABLE>^P
  287.  
  288. H="Table wizard (simple)"
  289. ^!InsertHtml <TABLE BORDER="1" WIDTH="100%">^P
  290. ^!SET %RowCount%=^?[How many &rows=1|2|_3|4|5|6|7|8|9]
  291. ^!SET %CellCount%=^?[How many &cells=1|2|_3|4|5|6|7|8|9]
  292. ^!SET %RowIndex%=0
  293. :RepeatRow
  294. ^!INC RowIndex
  295. ^!IF ^%RowIndex% > ^%RowCount% EndRow
  296. ^!InsertHtml   <TR>^P
  297. ^!SET %CellIndex%=0
  298. :RepeatCell
  299. ^!INC CellIndex
  300. ^!IF ^%CellIndex% > ^%CellCount% EndCell
  301. ^!InsertHtml     <TD>^P
  302. ^?[&Prompt for cell text=Yes^=    ^?{R^%RowIndex%C^%CellIndex%: Enter cell text}|_No^=    <!--R^%RowIndex%C^%CellIndex%-->]
  303. ^!InsertHtml ^P    </TD>^P
  304.  
  305. ^!GoTo RepeatCell
  306. :EndCell
  307. ^!InsertHtml   </TR>^P
  308. ^!GoTo RepeatRow
  309. :EndRow
  310. ^!InsertHtml </TABLE>^P
  311.  
  312. H=";Frame Elements"
  313. These elements are used to create frames.
  314.  
  315. H="Frame"
  316. ^!SetWizardLabel "Enter values for tag attributes"
  317. ^!InsertWizardHtml <FRAME SRC="^?{(T=O;F="HTML Files (*.htm*)|*.htm*")&URL of frame contents}" NAME="^?{&Name of frame}" FRAMEBORDER="^?{&Frame border=0|1}" SCROLLING="^?{&Scrolling=auto|no|yes}" ^?{(T=C)N&o resize==True^= NORESIZE|False^=}>^P
  318.  
  319. H="Frameset"
  320. ^!SetWizardLabel "Enter values for tag attributes"
  321. ^!InsertWizardHtml <FRAMESET COLS="^?{List of &columns}" ROWS="^?{List of &rows}">^p  ^&^p</FRAMESET>^p
  322.  
  323. H="IFrame"
  324. ^!SetWizardLabel "Enter values for tag attributes"
  325. ^!InsertWizardHtml <IFRAME SRC="^?{(T=O;F="HTML Files (*.htm*)|*.htm*")&URL of frame contents}" ALIGN="^?{&Align=bottom|left|middle|right|top}" HEIGHT="^?{&Height}" WIDTH="^?{&Width}" NAME="^?{&Name of frame}">^p  ^&^p</IFRAME>^p
  326.  
  327. H="NoFrames"
  328. ^!InsertHtml <NOFRAMES>^p  ^&^p</NOFRAMES>^p
  329.  
  330. H=";Form Elements"
  331. These elements are used to create forms.
  332.  
  333. H="Form"
  334. ^!SetWizardLabel "Enter values for tag attributes"
  335. ^!InsertWizardHtml <FORM ACTION="^?{&Action URL}" METHOD="^?{&Method=get|post}" TARGET="^?{&Target (transitional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top}">^P  ^&^P</FORM>^P
  336.  
  337. H="Input"
  338. ^!SetWizardLabel "Enter values for tag attributes"
  339. ^!InsertWizardHtml <INPUT TYPE="^?{Input &type=Button|Checkbox|File|Hidden|Image|Password|Radio|Reset|Submit|_Text}" NAME="^?{Input &name}" VALUE="^?{&Value=^&}">^P
  340.  
  341. H="Input button"
  342. ^!SetWizardLabel "Enter values for tag attributes"
  343. ^!InsertWizardHtml <INPUT TYPE="Button" NAME="^?{Button &name}" VALUE="^?{&Value=^&}">^P
  344.  
  345. H="Input checkbox"
  346. ^!SetWizardLabel "Enter values for tag attributes"
  347. ^!InsertWizardHtml <INPUT TYPE="Checkbox" NAME="^?{Checkbox &name}" VALUE="^?{&Value=^&}"^?{(T=C)&Checked==True^= CHECKED|_False^=}>^P
  348.  
  349. H="Input radio button"
  350. ^!SetWizardLabel "Enter values for tag attributes"
  351. ^!InsertWizardHtml <INPUT TYPE="Radio" NAME="^?{Radio button &name}" VALUE="^?{&Value=^&}"^?{(T=C)&Checked==True^= CHECKED|_False^=}>^P
  352.  
  353. H="Input submit"
  354. ^!SetWizardLabel "Enter value for tag attributes"
  355. ^!InsertWizardHtml <INPUT TYPE="Submit" NAME="^?{Button &name}" VALUE="^?{&Value=Submit}">^P
  356.  
  357. H="Input text"
  358. ^!SetWizardLabel "Enter values for tag attributes"
  359. ^!InsertWizardHtml <INPUT TYPE="Text" NAME="^?{Field &name}" VALUE="^?{&Value=^&}" MAXLENGTH="^?{&Maximum text length}" SIZE="^?{&Size}"^?{(T=C)&Read Only==True^= READONLY|_False^=}>^P
  360.  
  361. H="Multi-line input"
  362. ^!SetWizardLabel "Enter values for tag attributes"
  363. ^!InsertWizardHtml <TEXTAREA NAME="^?{Input &name}" ROWS="^?{&Rows}" COLS="^?{&Columns}" WRAP="^?{&Word wrap=_off|virtual|physical}"^?{(T=C)&Read Only==True^= READONLY|_False^=}>^P^&^P</TEXTAREA>^P
  364.  
  365. H="Option"
  366. ^!SetWizardLabel "Enter values for tag attributes"
  367. ^!InsertWizardHtml <OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}></OPTION>^P
  368.  
  369. H="Select"
  370. ^!If ^$GetSelSize$ > 0 FormatSelection
  371. ^!Set %Count%=^?{How many &items?=1|2|_3|4|5|6|7|8|9}; %FieldName%=^?{Field &name}
  372. ^!InsertWizardHtml <SELECT NAME="^%FieldName%">^P^$StrFill("  <OPTION></OPTION>^P";^%Count%)$</SELECT>^P
  373. ^!Goto End
  374.  
  375. :FormatSelection
  376. ^!Select PARAGRAPHS
  377. ^!SetListDelimiter ^P
  378. ^!SetArray %Items%=^$GetSelection$
  379.  
  380. ^!Set %Indent%="  "
  381. ^!Set %GroupIndent%=""
  382. ^!Set %IndentSize%=^$Calc(^$StrSize("^%Items1%!")$ - ^$StrSize("^$StrTrim("^%Items1%!")$")$)$
  383. ^!If ^%IndentSize% > 0 ^!Set %Indent%=^$StrCopy("^%Items1%";1;^%IndentSize%)$
  384. ^!If ^%IndentSize% > 2 ^!Set %GroupIndent%=^$StrCopy("^%Indent%";1;^$Calc(^%IndentSize% - 2)$)$
  385.  
  386. ^!Set %Index%=1; %ItemsCount%=^%Items0%; %ListStr%=^%GroupIndent%<SELECT NAME="^?{Field name}">^P
  387. ^!If ^%ItemsCount% > 1 ^!Dec %ItemsCount%
  388.  
  389. :StartLoop
  390. ^!If ^%Index% > ^%ItemsCount% EndLoop
  391. ^!Set %ListStr%=^%ListStr%^%Indent%<OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}>^?{Text=^$StrTrim("^%Items^%Index%%")$}</OPTION>^P
  392. ^!Inc %Index%
  393. ^!Goto StartLoop
  394.  
  395. :EndLoop
  396. ^!InsertWizardHtml ^%ListStr%^%GroupIndent%</SELECT>^P
  397.  
  398. H=";Other Elements"
  399.  
  400.  
  401. H="Script"
  402. ^!SetWizardLabel "Enter values for tag attributes"
  403. ^!InsertWizardHtml <SCRIPT TYPE="^?{&Type script=text/javascript|text/jscript|text/vbscript}" LANGUAGE="^?{&Scripting Language=javascript|jscript|vbscript}" SRC="^?{&URL of script code}" FOR="^?{&Element ID}" EVENT="^?{&Event name}"^?{(T=C)&Defer==True^= DEFER|False^=}>^P<!--^P  ^&^P//-->^P</SCRIPT>^P
  404.  
  405. H="NoScript"
  406. ^!InsertHtml <NOSCRIPT>^p  ^&^p</NOSCRIPT>^p
  407.  
  408. H="Applet"
  409. ^!SetWizardLabel "Enter values for tag attributes"
  410. ^!InsertWizardHtml <APPLET CODE="^?{&URL of Java code}" ARCHIVE="^?{Archive &file}" ALIGN="^?{&Align=bottom|left|middle|right|top}" WIDTH="^?{Applet &width}" HEIGHT="^?{Applet &height}" ALT="^?{Alternative text &description}">^P  ^&^P</APPLET>^P
  411.  
  412. H="Special character"
  413. &^?[(H=8)Choose special character to paste==_⌐ Copyright^=copy|« Registered TradeMark^=reg|TM TradeMark^=trade|Non breaking space^=nbsp|"^=quot|&^=amp|<^=lt|>^=gt|┴^=Aacute|ß^=aacute|└^=Agrave|α^=agrave|┬^=Acirc|Γ^=acirc|─^=Auml|Σ^=auml|├^=Atilde|π^=atilde|┼^=Aring|σ^=aring|╞^=Aelig|µ^=aelig|╟^=Ccedil|τ^=ccedil|╨^=Eth|≡^=eth|╔^=Eacute|Θ^=eacute|╚^=Egrave|Φ^=egrave|╩^=Ecirc|Ω^=ecirc|╦^=Euml|δ^=euml|═^=Iacute|φ^=iacute|╠^=Igrave|∞^=igrave|╬^=Icirc|ε^=icirc|╧^=Iuml|∩^=iuml|╤^=Ntilde|±^=ntilde|╙^=Oacute|≤^=oacute|╥^=Ograve|≥^=ograve|╘^=Ocirc|⌠^=ocirc|╓^=Ouml|÷^=ouml|╒^=Otilde|⌡^=otilde|╪^=Oslash|°^=oslash|▀^=szlig|▐^=Thorn|■^=thorn|┌^=Uacute|·^=uacute|┘^=Ugrave|∙^=ugrave|█^=Ucirc|√^=ucirc|▄^=Uuml|ⁿ^=uuml|▌^=Yacute|²^=yacute| ^=yuml];
  414.  
  415. H="Non breaking space"
  416.  
  417.  
  418. H="Apostrophe"
  419.  
  420. H="Quotes"
  421. “^&”
  422.  
  423. H="Color"
  424. ^!Clip "Color Codes"
  425. ^?{Choose a color=^$StrReplace("alice blue^=#F0F8FF";"_alice blue^=#F0F8FF";"^%AllColors%";True;False)$}
  426.  
  427. H=";Insert Tags"
  428.  
  429.  
  430. H="HRef Link"
  431. ^!InsertHtml <A ^?[(T=T;F="HTML Files|*.*htm*;*.asp;*.css")Link to web page=]>^?[Link text=^&]</A>
  432.  
  433. H="Img Link"
  434. ^!InsertHtml <IMG ^?[(T=T;C=U;F="Image Files|*.gif;*.png;*.jpg;*.jpeg;*.jpe")Link to image] BORDER="0" ALT="^?[Alt=^&]">
  435.  
  436. H=";Useful Commands"
  437.  
  438.  
  439. H="Tidy HTML code"
  440. ;Tidy code in the current documents. This Clip can use the HTML Tidy program, if available
  441. ^!Continue This command will tidy the code in your current document. Continue?
  442.  
  443. ;Determine method to use
  444. ^!Set %UseHtmlTidy%=No
  445. ^!IfFileExist "^$GetTidyExe$" ^!Set %UseHtmlTidy%=Yes
  446. ^!IfFalse ^%UseHtmlTidy% NoteTabMethod
  447. ;If HTML Tidy is found, ask which method the user would like to use
  448. ^!Set %UseHtmlTidy%=^?{Select method==_Use HTML Tidy program (more options)^=Yes|Use NoteTab commands (much faster)^=No}
  449. ^!IfTrue ^%UseHtmlTidy% TidyMethod
  450.  
  451. :NoteTabMethod
  452. ^!Set %Param%=^?{Tag format?==_Uppercase|Lowercase|XHTML}
  453. ^!Select ALL
  454. ^!InsertText ^$GetHtmlTextTidy("^$GetSelection$";^%Param%)$
  455. ^!Goto EndCall
  456.  
  457. :TidyMethod
  458. ^!Set %Param%=--tidy-mark false -q^?{Indent HTML code?==_Yes^=i|No^=}^?{Tag format?==_Uppercase^=u|Lowercase^=|XHTML^= -asxml}^?{Wrap long lines?==Yes^=|_No^= -wrap 0}
  459. ^!RunTidy ^%Param%
  460.  
  461. :EndCall
  462. ;Place the cursor at the start of the document
  463. ^!Jump Text_Start
  464.  
  465.  
  466. H=";Quick Tags"
  467.  
  468.  
  469. H="p"
  470. ^!SetPasteIndent Off
  471. ^!InsertHtml <P>^&</P>
  472.  
  473. H="br"
  474. ^!InsertHtml <BR>^P
  475.  
  476.  
  477. H="i"
  478. ^!Clip CheckLogical
  479.  
  480. :PasteTag
  481. ^!Set %Value%=I
  482. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=EM
  483. ^!InsertHtml <^%Value%>^&</^%Value%>
  484.  
  485. H="b"
  486. ^!Clip CheckLogical
  487.  
  488. :PasteTag
  489. ^!Set %Value%=B
  490. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=STRONG
  491. ^!InsertHtml <^%Value%>^&</^%Value%>
  492.  
  493. H="c"
  494. ^!InsertHtml <CENTER>^&</CENTER>
  495.  
  496. H="a"
  497. ^!InsertHtml <A HREF="^&"></A>
  498.  
  499. H="m"
  500. ^!InsertHtml <A HREF="mailto:^&"></A>
  501.  
  502. H="img"
  503. ^!InsertHtml <IMG SRC="^&" BORDER="0" ALT="">
  504.  
  505. H="co"
  506. <!-- ^& -->
  507.  
  508. H="td"
  509. ^!InsertHtml <TD>^&</TD>
  510.  
  511. H="tr"
  512. ^!InsertHtml <TR>^&</TR>
  513.  
  514. H="h1"
  515. ^!InsertHtml <H1>^&</H1>
  516.  
  517. H="h2"
  518. ^!InsertHtml <H2>^&</H2>
  519.  
  520. H="h3"
  521. ^!InsertHtml <H3>^&</H3>
  522.  
  523. H="h4"
  524. ^!InsertHtml <H4>^&</H4>
  525.  
  526. H=";"
  527.  
  528.  
  529. H=";Clipbar items"
  530.  
  531.  
  532. H="Open HTML-1 Clipbar"
  533. ^!OpenClipbar HTML-1
  534.  
  535. H="Open HTML-2 Clipbar"
  536. ^!OpenClipbar HTML-2
  537.  
  538. H="Paragraph"
  539. ^!SetPasteIndent Off
  540. ^!InsertHtml <P>^&</P>
  541.  
  542. H="Align center"
  543. ^!SetPasteIndent Off
  544. ^!InsertHtml <P ALIGN="center">^&</P>
  545.  
  546. H="Align justify"
  547. ^!SetPasteIndent Off
  548. ^!InsertHtml <P ALIGN="justify">^&</P>
  549.  
  550. H="Align left"
  551. ^!SetPasteIndent Off
  552. ^!InsertHtml <P ALIGN="left">^&</P>
  553.  
  554. H="Align right"
  555. ^!SetPasteIndent Off
  556. ^!InsertHtml <P ALIGN="right">^&</P>
  557.  
  558. H=";"
  559.  
  560.  
  561. H=";About this library"
  562. This library was written by Fookes Software to serve as a demonstration of the varied tasks that can be performed by the Editor Clipbook. You are free to customize it any way you like, but make sure you keep a backup copy before installing a new copy of NoteTab over it!
  563.  
  564. If you have a useful Clipbook library that you would like to share with other NoteTab users, please submit it to: <clipbook@fookes.com>. Your library will then be added to the Clipbook repository on the web.
  565.  
  566.  
  567. H=";"
  568.  
  569.  
  570. H="_Color Codes"
  571. ^!Set %AllColors%=alice blue^=#F0F8FF|antique white^=#FAEBD7|aqua^=#00FFFF|aqua marine^=#7FFFD4|azure^=#F0FFFF|beige^=#F5F5DC|bisque^=#FFE4C4|black^=#000000|blanched almond^=#FFEBCD|blue^=#0000FF|blue violet^=#8A2BE2|brown^=#A52A2A|burly wood^=#DEB887|cadet blue^=#5F9EA0|chartreuse^=#7FFF00|chocolate^=#D2691E|coral^=#FF7F50|corn flower blue^=#6495ED|corn silk^=#FFF8DC|crimson^=#DC143C|cyan^=#00FFFF|dark blue^=#00008B|dark cyan^=#008B8B|dark golden rod^=#B8860B|dark gray^=#A9A9A9|dark green^=#006400|dark khaki^=#BDB76B|dark magenta^=#8B008B|dark olive green^=#556B2F|dark orange^=#FF8C00|dark orchid^=#9932CC|dark red^=#8B0000|dark salmon^=#E9967A|dark sea green^=#8FBC8F|dark slate blue^=#483D8B|dark slate gray^=#2F4F4F|dark turquoise^=#00CED1|dark violet^=#9400D3|deep pink^=#FF1493|deep sky blue^=#00BFFF|dim gray^=#696969|dodger blue^=#1E90FF|fire brick^=#B22222|floral white^=#FFFAF0|forest green^=#228B22|fuchsia^=#FF00FF|gainsboro^=#DCDCDC|ghost white^=#F8F8FF|gold^=#FFD700|golden rod^=#DAA520|gray^=#808080|green^=#008000|green yellow^=#ADFF2F|honey dew^=#F0FFF0|hot pink^=#FF69B4|indian red^=#CD5C5C|indigo^=#4B0082|ivory^=#FFFFF0|khaki^=#F0E68C|lavender^=#E6E6FA|lavender blush^=#FFF0F5|lawn green^=#7CFC00|lemon chiffon^=#FFFACD|light blue^=#ADD8E6|light coral^=#F08080|light cyan^=#E0FFFF|light golden rod yellow^=#FAFAD2|light green^=#90EE90|light grey^=#D3D3D3|light pink^=#FFB6C1|light salmon^=#FFA07A|light sea green^=#20B2AA|light sky blue^=#87CEFA|light slate gray^=#778899|light steel blue^=#B0C4DE|light yellow^=#FFFFE0|lime^=#00FF00|lime green^=#32CD32|linen^=#FAF0E6|magenta^=#FF00FF|maroon^=#800000|medium aqua marine^=#66CDAA|medium blue^=#0000CD|medium orchid^=#BA55D3|medium purple^=#9370DB|medium sea green^=#3CB371|medium slate blue^=#7B68EE|medium spring green^=#00FA9A|medium turquoise^=#48D1CC|medium violet red^=#C71585|midnight blue^=#191970|mint cream^=#F5FFFA|misty rose^=#FFE4E1|moccasin^=#FFE4B5|navajo white^=#FFDEAD|navy^=#000080|old lace^=#FDF5E6|olive^=#808000|olive drab^=#6B8E23|orange^=#FFA500|orange red^=#FF4500|orchid^=#DA70D6|pale golden rod^=#EEE8AA|pale green^=#98FB98|pale turquoise^=#AFEEEE|pale violet red^=#DB7093|papaya whip^=#FFEFD5|peach puff^=#FFDAB9|peru^=#CD853F|pink^=#FFC0CB|plum^=#DDA0DD|powder blue^=#B0E0E6|purple^=#800080|red^=#FF0000|rosy brown^=#BC8F8F|royal blue^=#4169E1|saddle brown^=#8B4513|salmon^=#FA8072|sandy brown^=#F4A460|sea green^=#2E8B57|sea shell^=#FFF5EE|sienna^=#A0522D|silver^=#C0C0C0|sky blue^=#87CEEB|slate blue^=#6A5ACD|slate gray^=#708090|snow^=#FFFAFA|spring green^=#00FF7F|steel blue^=#4682B4|tan^=#D2B48C|teal^=#008080|thistle^=#D8BFD8|tomato^=#FF6347|turquoise^=#40E0D0|violet^=#EE82EE|wheat^=#F5DEB3|white^=#FFFFFF|white smoke^=#F5F5F5|yellow^=#FFFF00|yellow green^=#9ACD32
  572.  
  573. H="_Basic Color Codes"
  574. ^!Set %BasicColors%=aqua^=#00FFFF|black^=#000000|blue^=#0000FF|fuchsia^=#FF00FF|gray^=#808080|green^=#008000|lime^=#00FF00|maroon^=#800000|navy^=#000080|olive^=#808000|purple^=#800080|red^=#FF0000|silver^=#C0C0C0|teal^=#008080|white^=#FFFFFF|yellow^=#FFFF00
  575.  
  576. H="_CreateList"
  577. ^!If ^$GetSelSize$ > 0 FormatSelection
  578. ^!Set %Count%=^?{How many items?=1|2|_3|4|5|6|7|8|9}
  579. ^!InsertHtml <^&>^P^$StrFill("  <LI></LI>^P";^%Count%)$</^&>^P
  580. ^!Goto End
  581.  
  582. :FormatSelection
  583. ^!Select PARAGRAPHS
  584. ^!SetListDelimiter ^P
  585. ^!SetArray %Items%=^$GetSelection$
  586.  
  587. ^!Set %Indent%="  "
  588. ^!Set %GroupIndent%=""
  589. ^!Set %IndentSize%=^$Calc(^$StrSize("^%Items1%!")$ - ^$StrSize("^$StrTrim("^%Items1%!")$")$)$
  590. ^!If ^%IndentSize% > 0 ^!Set %Indent%=^$StrCopy("^%Items1%";1;^%IndentSize%)$
  591. ^!If ^%IndentSize% > 2 ^!Set %GroupIndent%=^$StrCopy("^%Indent%";1;^$Calc(^%IndentSize% - 2)$)$
  592.  
  593. ^!Set %Index%=1; %ItemsCount%=^%Items0%; %ListStr%=^%GroupIndent%<^&>^P
  594.  
  595. :StartLoop
  596. ^!If ^%Index% > ^%ItemsCount% EndLoop
  597. ^!Set %Line%=^$StrTrim("^%Items^%Index%%")$
  598.  
  599. ^!IfTrue ^$IsEmpty("^%Line%")$ Next ELSE Skip
  600. ^!If ^%Index% = ^%ItemsCount% EndLoop
  601.  
  602. ^!IfFalse ^$IsEmpty("^%Line%")$ ^!Set %Line%=^%Indent%<LI>^%Line%</LI>
  603. ^!Set %ListStr%=^%ListStr%^%Line%^P
  604. ^!Inc %Index%
  605. ^!Goto StartLoop
  606.  
  607. :EndLoop
  608. ^!InsertHtml ^%ListStr%^%GroupIndent%</^&>^P
  609.  
  610. H="_CheckLogical"
  611. ^!IfFalse ^$IsEmpty(^%p_LogicalTag%)$ CheckKeyboard
  612. ^!Set %p_LogicalTag%=^$GetValue("HTML_Logical")$
  613. ^!IfFalse ^$IsEmpty(^%p_LogicalTag%)$ CheckKeyboard
  614. ^!Set %p_LogicalTag%=False
  615. ^!SaveValue HTML_Logical=^%p_LogicalTag%
  616.  
  617. :CheckKeyboard
  618. ^!IfFalse ^$IsCtrlKeyDown$ End
  619. ^!Set %Value%=True
  620. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=False
  621. ^!Set %p_LogicalTag%=^%Value%
  622. ^!SaveValue HTML_Logical=^%p_LogicalTag%
  623.